package com.tkmybatis.hfy.config;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextStoppedEvent;
import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;

@Component
@Slf4j
public class ApplicationStop implements ApplicationListener<ContextStoppedEvent> {

	@Override
	public void onApplicationEvent(ContextStoppedEvent event) {
		try {
			log.info("==========程序停止===========");
		} catch (Exception e) {
			log.error("error:",e);
		}
	}

}
